//
//  MineListCell.m
//  ShandsMod
//
//  Created by zh_s on 2023/3/21.
//  Copyright © 2023 zh_s. All rights reserved.
//

#import "MineListCell.h"

@implementation MineListCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.accessoryType = UITableViewCellAccessoryNone;
        self.backgroundColor = [UIColor whiteColor];
        [self createView];
    }
    return self;
}

- (void)createView {
//    UIView *backV = [[UIView alloc] init];
//    [self.contentView addSubview:backV];
//    backV.backgroundColor = UIColor.whiteColor;
//    backV.frame = CGRectMake(20, 0, SCREEN_WIDTH - 40, 155);
//    [backV settingShadowOpacity:0.2 withShadowColor:RGB(153, 153, 153) wihtShadowRadius:5 withshadowOffset:CGSizeMake(0, 3)];
//    GWRadius(backV, 10);
    
    UIImageView *iconImg = [[UIImageView alloc] init];
    [self.contentView addSubview:iconImg];
//    iconImg.image = IMAGE_NAME(@"icon_tableview_star");
    [iconImg mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(23);
        make.centerY.mas_equalTo(self.contentView.mas_centerY).mas_offset(0);
        make.height.width.mas_equalTo(27);
    }];
    _iconImg = iconImg;

    
    UILabel *placeholderLab = [[UILabel alloc] init];
    [self addSubview:placeholderLab];
    placeholderLab.textColor = UIColor.blackColor;
    placeholderLab.font = FONT_NAME(FONT_Regular, 14);
    placeholderLab.text = @"";
    [placeholderLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(60);
        make.centerY.mas_equalTo(self.contentView.mas_centerY).mas_offset(0);
        make.size.mas_equalTo(CGSizeMake(SCREEN_WIDTH, 16));
    }];
    _titleLab = placeholderLab;
    
    UIImageView *arrowImage = [[UIImageView alloc] init];
    [self.contentView addSubview:arrowImage];
    arrowImage.image = IMAGE_NAME(@"service_arrow");
    [arrowImage mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(self.contentView.mas_right).mas_offset(- 16);
        make.centerY.mas_equalTo(self.contentView.mas_centerY);
        make.size.mas_equalTo(CGSizeMake(15, 15));
    }];

}




@end
